extends ../_layout
block content
   h1= 'Create a new club.'
   
   div.well
      if(user && !user.club)
         form(action='/clubs/create', method='post')
            div.form-group
               div: input(type='hidden', name='_csrf', value= '#{csrf}')
               div: input.form-control(type='text', name='name', placeholder='Club Name')
               div: textarea.form-control(rows='4', name='description', placeholder='Description')
               div: input.form-control(type='text', name='zipcode', placeholder='Zip Code')
            input.btn.btn-primary(type='submit', value='Create')
      else if(!user)
         form.navbar-form(action='/users/login', method='post')
            div.form-group
               input(type='hidden', name='_csrf', value='#{csrf}')
               input.form-control(type='text', name='email', placeholder='Email')
               input.form-control(type='password', name='password', placeholder='Password')
            input.btn.btn-success(type='submit', value='Login')
      else
         a.btn.btn-default(href='/users/profile') Back to profile


